package com.noexcs.forum.dao;

import com.noexcs.forum.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author noexcs
 * @since 5/21/2022 1:37 PM
 */
@Mapper
public interface UserMapper {

    User selectById(int id);

    User selectByUsername(String username);

    User selectByEmail(String email);

    int insertUser(User user);

    int updateStatus(int userId, int status);

    int updateHeader(int id, String headerUrl);

    int updatePassword(int id,String password);
}
